<style>
    .xh-form .btn{
        margin-right: 0px;
    }
    .xh-form tr td:nth-child(2n){
        padding: 5px 20px 5px 0;
    }
    td >label{
        text-align: right;
        padding-right: 10px;
    }
    body{
        background-color: #f9f9f9;
    }
    .select2-container--default .select2-results>.select2-results__options{
        max-height:100px;
    }
</style>
<script>
    {% if info is defined %}
            var info = {{ info | json_encode }};
        {% else %}
            var info = null;
    {% endif %}
    var prods = {{ prods | json_encode }};
</script>
<form id="xh_form" class="xh-form"  method="post" style="margin-left: 20px;">
    <div class="xh-area-form">
        <table>
            <tr>
                <td><label style="width: 75px;">设备类型</label></td>
                <td>
                    <select name="devType" style="width: 200px;" size="4">
                        <option value="">请选择</option>
                        {% for key,value in devType %}
                            <option value="{{ key }}">{{ value }}</option>
                        {% endfor %}
                    </select>
                </td>
                <td><label style="width: 75px;">价格</label></td>
                <td>
                    <input class="doubleInput" name="price" style="width: 200px;" type="number" step="0.01">
                </td>
            </tr>
            <tr>
                <td><label>学校</label></td>
                <td colspan="3">
                    <select name="schoolId" style="width: 510px;" size="5">
                        <option value="">请选择</option>
                        {% for key,value in schools %}
                            <option value="{{ key }}">{{ value }}</option>
                        {% endfor %}
                    </select>
                </td>
            </tr>
            <tr>
                <td><label>备注</label></td>
                <td colspan="5">
                    <textarea name="desc" rows="5"></textarea>
                </td>
            </tr>
        </table>
    </div>
</form>